

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header"><?php echo __('List of places'); ?></h1>
    </div>
               
</div>


<!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                   

                 <p>
                    <a class="btn btn-success" href="<?php echo $this->Html->url(array('action' => 'add')); ?>"><?php echo __('Add Place '); ?><i class="fa fa-plus"></i></a>
               </p>


                    <!-- Form d'ajout -->

                     <div class="panel panel-default">
                        <div class="panel-heading">
                            <?php echo __('Search of place'); ?>
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <?php echo $this->Form->create('Place',array('type'=>'post', 'action'=>'add','role'=>'form')); ?>

                                    <label><?php echo __('Place'); ?></label>
                                            <?php echo $this->Form->input('label',array('class'=>'form-control','label'=> false, 'type' =>'text', 'placeholder'=>'Enter place', 'required'=> 'required'));?>

                                </div>
                                <!-- /.col-lg-6 (nested) -->
                                <div class="col-lg-3">
                                    <div class="form-group">
                                            
                                    </div>
                                    
                                </div>

                                <div class="col-lg-3">
                                    <div class="form-group">
                                            
                                    </div>
                                    
                                </div>
                               
                            </div>
                            <!-- /.row (nested) -->
                        
                

 <!--  Block dataTable -->  
                 
<div class="panel panel-default">
    <div class="panel-heading">
                        	<?php echo __('List of places'); ?>
    </div>
                        <!-- /.panel-heading -->
     <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            
                                            <th><?php echo __('Place'); ?></th>
                                            
                                            <th><?php echo __('Action'); ?></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        	<?php foreach ($places as $place): ?>
                                        
                                        <tr class="gradeA">
                                            <td><?php echo h($place['Place']['label']); ?>&nbsp;</td>
                                            <td>
                                            	<?php echo $this->Html->link(__('View'), array('action' => 'view', $place['Place']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $place['Place']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $place['Place']['id']), null, __('Are you sure you want to delete # %s?', $place['Place']['id'])); ?>
                                            </td>
                                           
                                        </tr>
                                       
                                        <?php endforeach; ?>
                                    </tbody>
                                </table>
                                <?php echo  $this->element('paginate'); ?>
                            </div>
                            
                        </div>
                        <!-- /.panel-body -->
</div>
</div>
</div>

  
</div>
                        <!-- /.panel-body -->
                    </div> 
                    <!-- /.panel -->